// -*- coding: utf-8 -*- 
/**
 * Project: Java8InActionT
 * Creator: yanking
 * Create time: 2022-02-21 15:37
 * IDE: IntelliJ IDEA
 * Introduction:
 */
package com.broClass.Person;

public class Teacher extends Person {
    public double Salary;


    public Teacher(String name, int age, double salary) {
        super(name, age);
        Salary = salary;
    }

    public double getSalary() {
        return Salary;
    }

    public void setSalary(double salary) {
        Salary = salary;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "Salary=" + Salary +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
